<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id = "app">
    <ul>
        <my-component-li v-for="item in items" v-bind:item="item"></my-component-li>
    </ul>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js">

</script>
<script>
    Vue.component('my-component-li',{
        props:['item'],
        template:'<li>Hello {{item}}</li>'
    });
    var vm = new Vue({
        el: "#app",
        data:{
            items:["张三","李四","王五"]
        }

    });
</script>
</body>
</html>